package org.example.myleet.p1022;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(22 == solution.sumRootToLeaf(Parser.parse(new Integer[]{1,0,1,0,1,0,1})));
        Assert.isTrue(0 == solution.sumRootToLeaf(Parser.parse(new Integer[]{0})));
    }
}
